package model

import "github.com/jinzhu/gorm"

type User struct {
	gorm.Model
	Name string `gorm:"type:varchar(20);not null"`
	Email string `gorm:"varchar(20);not null"`
	Password string `gorm:"size:255;not null"`
	Face string `gorm:"size:255;default:'default'"`
	Sign string `gorm:"size:255;default:'什么都没有'"`
	IsAdmin int `gorm:"default:0"`
}